package com.maple.object;

import com.maple.judegement.Judgement;

public class StringUtil {
	/**
	 * 得到后缀名  String
	 * @param str
	 * @return
	 */
	private String getSuffix(String str){
		if(!Judgement.isAvailable(str))
			return "";
		int lastIndex=str.lastIndexOf(".");
		if(lastIndex<0)
			return "";
		else{
			return str.substring(lastIndex);
		}
	}

}
